package com.lwlean.test.exception;

/**
 * Created by lean on 16-12-16.
 */
public enum ErrorEnum {

    SERVER_ERROR(10000,"服务器错误"),

    PARAMETERS_ERROR(1001,"传入参数错误"),

    FILED_TYPE_MATCH_ERROR(1002,"参数类型匹配错误"),

    RESTTEMPLATE_ERROR(1003,"调用接口错误");



    private int code;
    private String message;

    ErrorEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
